package org.jeecg.modules.platformMasterEndPoint.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@TableName("jx_food_repository")
@Data
public class JxFoodRepositoryDo {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @TableField("food_name")
    private String foodName;

    @TableField("image")
    private String image;

    @TableField("DESCRIPTION")
    private String description;

    @TableField("SPECIFICATION")
    private String specification;

    @TableField("STORE_ID")
    private String storeId;

    @TableField("STORE_NAME")
    private String storeName;

    @TableField("STORE_PRICE")
    private Integer storePrice;

    /**
     * 某个店铺，某个菜品每天总共能够供应的份数；当将该店家配置给多个站点时，该菜品在多个站点累加供应限购份数，等于此值
     */
    @TableField("LIMIT_COUNT")
    private Integer limitCount;

    @TableField("FOOD_TYPE_NAME")
    private String foodTypeName;

    /**
     * 菜品上架状态：上架 或 下架
     */
    @TableField("STATE")
    private String state;

    /**
     * 菜品在店铺中的排序序号
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 该项菜品是否为必选项
     */
    @TableField("required")
    private boolean required;

    @TableField("DEL_FLAG")
    private short delFlag;

    @TableField("CREATE_TIME")
    private Date createTime;

    @TableField("UPDATE_TIME")
    private Date updateTime;
}
